package org.dromara.tearoom.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.tearoom.domain.TerRechargeRules;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 充值规则视图对象 ter_recharge_rules
 *
 * @author xch
 * @date 2025-05-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TerRechargeRules.class)
public class TerRechargeRulesVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 最小金额
     */
    @ExcelProperty(value = "最小金额")
    private Integer minAmount;

    /**
     * 最大金额
     */
    @ExcelProperty(value = "最大金额")
    private Integer maxAmount;

    /**
     * 优惠类型
     */
    @ExcelProperty(value = "优惠类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ter_reward_type")
    private Integer rewardType;

    /**
     * 转换金额
     */
    @ExcelProperty(value = "转换金额")
    private Integer rewardValue;

    /**
     * 生效开始时间
     */
    @ExcelProperty(value = "生效开始时间")
    private Date startTime;

    /**
     * 生效结束时间
     */
    @ExcelProperty(value = "生效结束时间")
    private Date endTime;


}
